"""
Task 1

The greatest number

Write a Python program to get the largest number from a list of random numbers with the length of 10

Constraints: use only while loop and random module to generate numbers
"""

from random import randint

random_generated_list = []

min_range = ""
max_range = ""

while not min_range.isdigit() or not max_range.isdigit():
    min_range = input("Input min range value: ").strip()
    max_range = input("Input max range value: ").strip()

min_range = int(min_range)
max_range = int(max_range)


while len(random_generated_list) < 10:
    random_generated_list.append(randint(min_range,max_range))
print(random_generated_list)
print(max(random_generated_list))